-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export API to set RefTime of Updater #641
Conversation
Signed-off-by: Adam Korczynski <[email protected]>
Co-authored-by: Fredrik Skogman <[email protected]> Signed-off-by: AdamKorcz <[email protected]>
Signed-off-by: Adam Korczynski <[email protected]>
Thanks for the contribution @AdamKorcz, would you mind also adding a comment describing this, why it may be useful and any consequences of using this in a real life application? |
Signed-off-by: Adam Korczynski <[email protected]>
faf9792 - LMK if it needs more context. I have kept it short to align the description with other methods in the file. |
Co-authored-by: Fredrik Skogman <[email protected]> Signed-off-by: AdamKorcz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@rdimitrov @trishankatdatadog any thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rdimitrov @trishankatdatadog any thoughts?
I think it makes sense 👍 I don't think it's worth it that much but I was going to suggest that we can make the RefTime field private and add set/get methods so setting it is even more explicit.
Thanks for these changes, @AdamKorcz 🙌
I think it's fine w/out get/set? The other fields are lacking this, and I think it's clear with the current design? |
enabled by theupdateframework/go-tuf#641 Signed-off-by: Adam Korczynski <[email protected]>
This PR exports an API to set the
RefTime
of the trusted metadata of anUpdater
. This is useful for testing time-related cases in the client outside of go-tufs own repository.